<template>
  <div class="home">
    <div class="main">
      <div class="logo">
        <a href="">
          <img src="../assets/R-C.jpg" alt="" />
          <p>yuan</p>
        </a>
      </div>
      <div class="but">
        <button>GitHub</button>
        <button>gitee</button>
        <router-link to="blog/articleList">
          <button>浏览博客</button>
        </router-link>
        <router-link to="blog/about">
          <button>关于我</button>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home",
};
</script>

<style lang="less" scope>
.home {
  width: 100%;
  height: 100%;
  .main {
    width: 50%;
    margin: 100px auto 0 auto;
    .logo {
      width: 100%;
      height: 100%;
      text-align: center;
      p {
        display: block;
        margin: 10px 0;
        font-size: 19px;
        color: white;
      }
      img {
        border-radius: 50%;
        transition: 0.5s;
        width: 200px;
        height: 200px;
      }
      a:hover img {
        transform: rotate(-35deg);
      }
      a:focus img {
        transform: rotate(-35deg);
        transform: scale(1.1, 1.1);
      }
    }
    .but {
      width: 80%;
      height: 100%;
      margin: 0 auto;
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      align-items: center;
      /*按钮样式*/
      button {
        width: 128px;
        height: 45px;
        cursor: pointer;
        background-color: transparent;
        color: white;
        font-size: 1rem;
        border: 1px solid white;
        margin: 25px 0px 0px 10px;
        outline: 0;
        box-shadow: 0px 0px 10px white;
        text-shadow: 0px 0px 2px white;
        transition: 0.3;
      }
      button:hover {
        box-shadow: 0px 0px 20px black;
        padding-bottom: 5px;
      }
      button:active {
        font-size: 1.3rem;
      }
      button:focus {
        font-size: 1.3rem;
      }
    }
  }
}
a {
  text-decoration: none;
}
</style>